﻿using ProjectManageSystemApi.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ProjectManageSystemApi.Services
{
    public interface ISupplierGoodsService
    {
        bool Create(SupplierGoodsInfoDto supplierGoodsInfo, long userId);
        bool Update(SupplierGoodsInfoDto supplierGoodsInfo);
        bool Delete(int id);
        bool ExistById(int id);
        Models.PageVo<IEnumerable<SupplierGoodsInfoDto>> GetAll(Models.PageBo<SupplierGoodsParams> pageBo);
        bool ExistBySupplierIdAndGoods(int supplierId, string name, int id = 0);
    }
}
